﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Guline.HosterModels.Object
{
    public class MailAccount
    {
        [Key]
        public int ID { get; set; }
        [Required(ErrorMessage = "Please enter Email!")]
        public string Email { get; set; }
        [Required(ErrorMessage = "Please enter Password!")]
        public string PassWords { get; set; }
        public Nullable<int> Status { get; set; }
        public string Notes { get; set; }
        public Nullable<int> OrganizeID { get; set; }

        [ForeignKey("OrganizeID")]
        public virtual Organize Organize { get; set; }
    }
}
